<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<head lang="en">
    <meta charset="UTF-8">
  	<%@include file="style.jsp" %>
    <%@include file="script.jsp" %>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/orderlang/distributor/css/capital_statement.css"/>
    <title>资金报表</title>
</head>
<body onselectstart="return false">
<div id="container_1" style="height:100%">
    <div style="position: relative">
        <%@include file="header.jsp" %>
    </div>
    <div id="content" class="clearfix">
        <%@include file="left_menu.jsp" %>
        <!--内容部分-->
        <div class="right-content" style="margin:75px 20px 0 213px;">
            <p class="brand">
                <a>报表</a>><a class="now">资金报表</a>
            </p>
            <div class="content">
                <div class="top-block">
                    <div class="date fl">
                        <input class="fl" id="datePicker" readonly placeholder="选择日期" onchange="changes()"/>
                    </div>
                    <!-- <div class="select-box fl">
                        <div class="fl">
                            <input type="text" readonly class="show" placeholder="支付方式"/>
                            <input type="text" readonly class="hidden"/>
                            <span>▼</span>
                            <ul class="hide">
                                <li>不限</li>
                                <li>现金</li>
                                <li>微信转账</li>
                                <li>支付宝</li>
                                <li>挂账</li>
                            </ul>
                        </div>
                    </div> -->
                    <div class="select-box fl">
                        <div class="fl">
                            <input type="text" readonly class="show" placeholder="选择客户"/>
                            <input type="text" readonly class="hidden"/>
                            <span>▼</span>
                            <ul class="hide">
                                
                            </ul>
                        </div>
                    </div>
                    <button>确定</button>
                </div>
                <div class="center">
                    <div class="clearfix" style="margin-bottom: 20px;">
                        <p>
                            <span>客户数</span>
                            <span>${customerTotal}个</span>
                        </p>
                        <p>
                            <span>总金额</span>
                            <span>￥${amountTotal}</span>
                        </p>
                    </div>
                    <div id="chart-block">

                    </div>
                </div>
                <div class="product-list">
                    <table>
                        <thead>
                        <tr>
                            <td>日期</td>
                            <td>订货笔数</td>
                            <td>支付宝支付</td>
                            <td>线下转账</td>
                            <td>微信支付</td>
                            <td>现金</td>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${fundsCountDtos}" var="iR">
                        <tr>
                            <td><fmt:formatDate value="${iR.time}" pattern="yyyy-MM-dd"/></td>
                            <td>${iR.num}</td>
                            <td>￥<c:if test="${iR.zamount == null }">0.00</c:if>${iR.zamount}</td>
                            <td>￥<c:if test="${iR.xamount == null }">0.00</c:if>${iR.xamount}</td> 
                            <td>￥<c:if test="${iR.wamount == null }">0.00</c:if>${iR.wamount}</td>
                            <td>￥<c:if test="${iR.gamount == null }">0.00</c:if>${iR.gamount}</td>
                        </tr>
						</c:forEach>
                        </tbody>
                    </table>
                    <!-- -----分页----- -->
                    <div class="quotes" style="margin-top: 50px">
                </div>
            </div>
        </div>
        <script src="${pageContext.request.contextPath}/static/orderlang/distributor/js/capital_statement.js"></script>
        <!--内容部分结束-->
    </div>
</div>

</body>
</html>